package com.biz.impl;

import com.dao.HotelReservationDao;
import com.entity.model.HotelReservation;
import com.biz.HotelReservationBiz;
import com.core.AbstractBiz;
import com.util.webpage.PageData;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;


/**
 * Created by jc on 2019/11/16.
 */
@Service
@Transactional
public class HotelReservationBizImpl extends AbstractBiz<HotelReservation> implements HotelReservationBiz {
    @Resource
    private HotelReservationDao hotelReservationDao;

    public List<HotelReservation> getReservationList(Map cond){
        return  hotelReservationDao.getReservationList(cond);
    }

    public List<HotelReservation> getHotelReservationIsFull(PageData cond){
        return  hotelReservationDao.getHotelReservationIsFull(cond);
    }
}
